Skip to content

Fix arizona client global availability in frontend template#15

Merged
williamthome merged 3 commits intomainfrom
fix/frontend-arizona-global-scope
Sep 15, 2025
Merged

Fix arizona client global availability in frontend template#15
williamthome merged 3 commits intomainfrom
fix/frontend-arizona-global-scope

Conversation

@williamthome
Copy link
Member

  • Expose arizona client instance to globalThis for onclick handlers
  • Resolves "arizona not defined" error in button onclick="arizona.sendEvent(...)"
  • Maintains existing debug logging and websocket connection setup

- Expose arizona client instance to globalThis for onclick handlers
- Resolves "arizona not defined" error in button onclick="arizona.sendEvent(...)"
- Maintains existing debug logging and websocket connection setup
- Remove priv/static/assets/app.css and app.js from template
- Require users to run npm run build before starting app
- Prevents async issues between source and built assets
- Ensures users always have fresh builds matching their modifications
@williamthome williamthome merged commit ead59c1 into main Sep 15, 2025
4 checks passed
@williamthome williamthome deleted the fix/frontend-arizona-global-scope branch September 15, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant